//
//  PokeManInfoPannelManager.swift
//  PokeMaster
//
//  Created by 李腾芳 on 2022/1/16.
//  Copyright © 2022 OneV's Den. All rights reserved.
//

import SwiftUI

struct PokeManInfoPanelManager: View {
    let model: PokemonViewModel?
    var body: some View {
        VStack {
            if let model = self.model {
                Spacer()
                PokeManInfoPannel(model: model)
            } else {
                EmptyView()
            }
            
        }
    }
}

struct PokeManInfoPanelManager_Previews: PreviewProvider {
    static var previews: some View {
        PokeManInfoPanelManager(model: PokemonViewModel.sample(id: 1))
    }
}
